<?php 

	/**
	$mod[0][0][0] = "admin Permisos";
	$mod[0][0][1] = "Permisos";
	$mod[0][0][2] = 'href="app/view/seg_permits/register.php?&dir=seg_permits&title=admin Permisos" target="ifr_colum_der"';
**/
	$mod[1][0][0] = "Modulos";
	$mod[1][0][1] = "Modulos";
	$mod[1][0][2] = 'href="app/view/seg_modules/register.php?&dir=seg_modules&title=Modulos" target="ifr_colum_der"';

	/***/
	$mod[2][0][0] = "Admin Menu";
	$mod[2][0][1] = "Menu";
	$mod[2][0][2] = 'href="app/view/seg_menu/register.php?&dir=seg_menu&title=Admin Grupos" target="ifr_colum_der"';
	

	$mod[3][0][0] = "Admin Grupos";
	$mod[3][0][1] = "grupos";
	$mod[3][0][2] = 'href="app/view/seg_group_user/register.php?&dir=seg_group_user&title=Admin Grupos" target="ifr_colum_der"';


	$mod[4][0][0] = "Servidor Cliente";
	$mod[4][0][1] = "Servidores";
	$mod[4][0][2] = 'href="app/view/seg_client_server/register.php?&dir=seg_client_server&title=Servidores" target="ifr_colum_der"';

	$mod[5][0][0] = "Licencias";
	$mod[5][0][1] = "Licencias";
	$mod[5][0][2] = 'href="app/view/seg_license/register.php?&dir=seg_license&title=Licencias" target="ifr_colum_der"';

	$mod[6][0][0] = "Respaldo BD";
	$mod[6][0][1] = "Respaldo BD";
	$mod[6][0][2] = 'href="app/respaldoDB/dump_db.php?&dir=seg_license&title=Admin Grupos"  target="_new" ';

	
	/*$mod[7][0][0] = "Empresa";
	$mod[7][0][1] = "Empresa";
	$mod[7][0][2] = 'href="app/view/neg_company/edit.php?&dir=neg_company&title=Registro de Empresa" target="ifr_colum_der"';
	
	$mod[8][0][0] = "Admin Proveedor";
	$mod[8][0][1] = "Admin Proveedor";
	$mod[8][0][2] = 'href="app/view/proveedor/register.php?&dir=proveedor&title=Admin Proveedor" target="ifr_colum_der"';
	
	$mod[9][0][0] = "Periodos";
	$mod[9][0][1] = "Periodos";
	$mod[9][0][2] = 'href="app/view/periodo/register.php?&dir=periodo&title=Periodos" target="ifr_colum_der"';*/


	
	$mod[10][0][0] = "Reporte";
	$mod[10][0][1] = "Parametros";
	$mod[10][0][2] = 'href="app/view/seg_parametro/register.php?&dir=seg_parametro&title=" target="ifr_colum_der"';

	$mod[10][1][0] = "Reporte";
	$mod[10][1][1] = "Valor";
	$mod[10][1][2] = 'href="app/view/seg_valor/register.php?&dir=seg_valor&title=" target="ifr_colum_der"';
	
	/*	
	$mod[10][2][0] = "Reporte";
	$mod[10][2][1] = "Reporte Grupo";
	$mod[10][2][2] = 'href="app/view/seg_reporte_grupo/register.php?&dir=seg_reporte_grupo&title=" target="ifr_colum_der"';
	*/
	
	$mod[10][3][0] = "Reporte";
	$mod[10][3][1] = "Reporte";
	$mod[10][3][2] = 'href="app/view/seg_reporte/register.php?&dir=seg_reporte&title=" target="ifr_colum_der"';
	
	
	$mod[11][0][0] = "Auditoria";
	$mod[11][0][1] = "Auditoria";
	$mod[11][0][2] = 'href="app/view/seg_auditoria/consult.php?&dir=seg_auditoria&title=" target="ifr_colum_der"';
	
	$i = $j = 0;
	$html  ='<div id="menu">';
	$html .=	'<div class="color_azul" style="height: 30px; font-weight:bold;text-align:center">Panel de Control</div>';
	foreach ($mod as $v1){ $i++;
		$html .='<ul class="menu_lista">';
		$html .=	'<li id="_'.($i).'" class=" menu_lista_rew">';
		$html .=		'<div style="float:left"><img src="img/folder_32.png" width="24" height="24" /></div>';
		$html .=		'<div style="float:left;margin:5px">'.($v1[0][0]).'</div>';
		$html .=	'</li>';
		$html .=	'<li id="_'.($i).'_'.($i).'" class=" menu_sub_lista" style="display:none;">';
		$html .=		'<ul>';
		foreach ($v1 as $v2){ $j++;
			$html .=		'<a '.($v2[2]).'>';
			$html .=			'<li id="_'.($i).'__'.($j).'" class="rew">';
			$html .=				'<img src="img/folder.png" style="margin-right:5px"/>'.$v2[1];
			$html .=			'</li>';
			$html .=		'</a>';
		} $j=0;
		$html .=		'</ul>';
		$html .=	'</li>';
		$html .='</ul>';
	}
	$html .='</div>';
	echo $html;
?>
<script language="JavaScript" type="text/javascript" src="lib/js/menu.js"></script>
